package com.llap.exp190929.repository;

import com.llap.exp190929.entity.Category;
import com.llap.exp190929.entity.Document;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface DocumentRepository extends JpaRepository<Document, Integer> {
    Page<Document> findAllByCategory(Category category, Pageable pageable);
}
